readWKT("POINT(1.5 1.5)")
# With scale set to 1, the following point will be rounded
setScale(1)
readWKT("POINT(1.5 1.5)")
setScale(10)
readWKT("POINT(1.5 1.5)")
getScale()
# Set scale option back to default
setScale()
# scale option only affect objects when they are translated through rgeos
setScale(1)
SpatialPoints(data.frame(x=1.5,y=1.5))
translate( SpatialPoints(data.frame(x=1.5,y=1.5)) )
setScale()
Run the code above in your browser using DataLab